<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--引入外部文件-->
    <script src="./node_modules/vue/dist/vue.js" ></script>
</head>
<style>
    td{
        width: 100px;
        background-color:pink;
    }
</style>
<body>
<div id="app">
    <table>
        <tr v-for="user in users" >
            <td>{{user.name}}</td>
            <td>{{user.gender}}</td>
            <td>{{user.age}}</td>
        </tr>

        <br>
        <tr v-for="(user,index) in users" >
            <td>{{index+1}}</td>
            <td>{{user.name}}</td>
            <td>{{user.gender}}</td>
            <td>{{user.age}}</td>
        </tr>

        <br>
        <tr v-for="(v,k) in user" >

            <td>{{k}}</td>
            <td>{{v}}</td>

        </tr>
    </table>
</div>
<br>

</body>

<script>

    var vm = new Vue({
        el:"#app",
        data:{
            users:[
                {name:'柳岩', gender:'女', age: 21},
                {name:'有哥', gender:'男', age: 30},
                {name:'范冰冰', gender:'女', age: 24},
                {name:'刘亦菲', gender:'女', age: 18},
                {name:'古力娜扎', gender:'女', age: 25}
            ],
            user:{name:'柳岩', gender:'女', age: 21}
        }
    })

</script>

</html>